<?php

namespace App\Repositories;

use App\Test;

class TestRepository
{
    protected $test;

    public function __construct(Test $test)
    {
        $this->test = $test;
    }

    public function create($data)
    {
        return $this->test->create($data);
    }

    /**
     * 获取记录
     *
     * @return mixed
     */
    public function get()
    {
        return $this->test->get();
    }
}